﻿using System;

namespace Interface_ManTuLuoBA
{
    /// <summary>
    /// HIS请求类
    /// </summary>
    public class HisRequest
    {
        public String ZYNum { get; set; }//住院号
        public String PatientName { get; set; }//病人姓名
        public String KSCode { get; set; }//科室代码
        public String BedCode { get; set; }//床号
        public String OperName { get; set; }//操作员姓名
        public String OperCode { get; set; }//操作员代码

        // 1 入院
        // 5 取消入院

        // 4 出院
        // 3 取消出院

        // 2 转科
        public int ReqFlag { get; set; }//操作标志

        public DateTime? RkDate { get; set; }//操作时间
        public DateTime? CkDate { get; set; }//操作时间
        public DateTime? ZkDate { get; set; }//操作时间

        //仅出院时 1死亡
        public int? DeathFlag { get; set; }//死亡标志

        //仅入院时
        public String YSCode { get; set; }//医师姓名

        public override string ToString()
        {
            String enterStr = "\r\n";
            return enterStr +
                "Param_>_____ZYNum__________>  " + ZYNum + enterStr +
                "Param_>_____PatientName____>  " + PatientName + enterStr +
                "Param_>_____KSCode_________>  " + KSCode + enterStr +
                "Param_>_____BedCode________>  " + BedCode + enterStr +
                "Param_>_____OperName_______>  " + OperName + enterStr +
                "Param_>_____OperCode_______>  " + OperCode + enterStr +
                "Param_>_____ReqFlag________>  " + ReqFlag + enterStr +
                "Param_>_____RkDate_________>  " + RkDate + enterStr +
                "Param_>_____CkDate_________>  " + CkDate + enterStr +
                "Param_>_____ZkDate_________>  " + ZkDate + enterStr +
                "Param_>_____DeathFlag______>  " + DeathFlag + enterStr +
                "Param_>_____YSCode_________>  " + YSCode;
        }
    }
}